package com.lantosec.hmrp.modules.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lantosec.hmrp.core.kit.PageVO;
import com.lantosec.hmrp.modules.monitor.entity.WarningTotalEntity;
import com.lantosec.hmrp.modules.system.entity.SysBigscreenSql;
import com.lantosec.hmrp.modules.warning.entity.WarningData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 大屏接口SQL Mapper 接口
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-17
 */
@Mapper
public interface SysBigscreenSqlMapper extends BaseMapper<SysBigscreenSql> {

    WarningTotalEntity getSqlResult(String sqlResult);

    List<WarningTotalEntity> getSqlResultList(String sqlResult);

    PageVO<WarningData> getWarningDetails(PageVO<WarningData> page, @Param("sql") String sqlContent);
}
